import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        name: 'index',
        component: () => import('@/views/index/index.vue'),
        meta: {},
        // 此处可拆分成新的文件,文件较少就不拆分了
        children: [{
            path: 'business-users',
            name: 'businessUsers',
            component: () => import('@/views/business-user/index.vue'),
            meta: {},
        },{
            path: 'business-users-details',
            name: 'businessUsersDetails',
            component: () => import('@/views/business-user/details.vue'),
            meta: {},
        }]
    },

]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router;


